﻿using RoomMgr.Models.Rooms;
using RoomMgr.Repositories.ReponsitoryBase;
using RoomMgr.Repositories.Rooms;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RoomMgr.Business.Rooms
{
    public class RoomManagement
    {
        public static IRoomRepository repository;

        static RoomManagement()
        {
            repository = RepositoryFactory.GetRepository<IRoomRepository, Room>();
        }

        public static IList<Room> GetAll()
        {
            return repository.GetAll();
        }

        /*public static RoomType GetFromTypeById(int id) {
            // edit
            //return new RoomType(1, "li thuyet");
        }*/

    }
}
